# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cmake-doc-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=3.17.3
pkgrel=1
pkgdesc="CMake documentation in Qt Help format"
arch=('any')
license=('CCPL:cc-by')
url='https://www.cmake.org/documentation/'
# rename to include version of each release
# (prevents accidentally using the file of an older version)
source=("CMake-${pkgver}.qch::https://www.cmake.org/cmake/help/v${pkgver%.*}/CMake.qch")
sha256sums=('39a73475fd26c1bfaaefef334407aa99429cf8fe185f59d3ec64bb2b10a00aa8')

package() {
  mkdir -p "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
  cp "${srcdir}/CMake-${pkgver}.qch" "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
}
